#
# Makefile for EmicallCR project version 0.1.0
# to create static libraty file libmeeting_service.a
# created by Yang Cheng<yangc0321@sinicnet.com.cn>
#

CC=gcc

#OBJECTS = DatabaseCcTalkCcNumberApi.o DatabaseCcTalkIVRNodeApi.o DatabaseCcTalkIVRNodeEventApi.o DatabaseCcTalkIVRNodeParmApi.o \
#		  DatabaseCcTalkIVRVersionApi.o ivr-util.o DBCcTalkEnterpriseUserApi.o DBCcTalkEnterpriseGroupApi.o DBCcTalkEnterpriseGroupUserApi.o \
#		  DBCcTalkEnterpriseUserStateApi.o DatabaseCmBCDActivity.o

SRCS := $(wildcard *.c)
OBJECTS := $(patsubst %.c, %.o, $(SRCS))

TARGETS = libCCSV.a

all : $(OBJECTS)
	ar -rsv $(TARGETS) $(OBJECTS)

.c.o:
	$(CC) -c $(EMIC_CM_CFLAGS) $(INCLUDE) $< -o $@

test: all

install:
	install -c -d $(EMIC_CR_INSTALL_PATH)include
	install -c -p *.h $(EMIC_CR_INSTALL_PATH)include/
	install -c -d $(EMIC_CR_INSTALL_PATH)lib
	install -c -p $(TARGETS) $(EMIC_CR_INSTALL_PATH)lib 

clean : 
	rm -f $(TARGETS) $(OBJECTS)
